# On a MIPS system, the BSD version of libc.a should be used to get
# sigsetmask. I found it necessary to link against the system V
# library first, to get a working version of fprintf. But this may have
# been due to my failure to find the right version of stdio.h or some
# such thing.
gctest: test.o cons.o gc.a
cc $(CFLAGS) -o gctest test.o cons.o gc.a
setjmp_test: setjmp_test.c gc.h
cc -o setjmp_test setjmp_test.c
test: setjmp_test gctest
setjmp_test
@echo "WARNING: for GC test to work, all debugging output must be turned off"
rm -f output-local
gctest > output-local
-diff correct-output output-local > output-diff
-@test -s output-diff && echo 'Output of program "gctest" is not correct. GC does not work.' || echo 'Output of program "gctest" is correct. GC probably works.'